package com.apac.bom;

import java.io.Serializable;
import javax.persistence.*;

import org.codehaus.jackson.annotate.JsonIgnore;

import java.util.Date;


/**
 * The persistent class for the employment_salary_history_tbl database table.
 * 
 */
@Entity
@Table(name="employment_salary_history_tbl")
public class EmploymentSalaryHistory extends AbstractBOM implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="SAL_HIST_CODE")
	private int salHistCode;

	@Column(name="EMP_PERF_EVAL")
	private boolean empPerfEval;

	@Column(name="EMP_SAL")
	private String empSal;

	@Temporal(TemporalType.DATE)
	@Column(name="SAL_EFF_DATE")
	private Date salEffDate;

	//bi-directional many-to-one association to Employee
	@ManyToOne
	@JoinColumn(name="EMP_ID_NO")
	private Employee employee;

	public EmploymentSalaryHistory() {
	}

	public int getSalHistCode() {
		return this.salHistCode;
	}

	public void setSalHistCode(int salHistCode) {
		this.salHistCode = salHistCode;
	}

	public boolean getEmpPerfEval() {
		return this.empPerfEval;
	}

	public void setEmpPerfEval(boolean empPerfEval) {
		this.empPerfEval = empPerfEval;
	}

	public String getEmpSal() {
		return this.empSal;
	}

	public void setEmpSal(String empSal) {
		this.empSal = empSal;
	}

	public Date getSalEffDate() {
		return this.salEffDate;
	}

	public void setSalEffDate(Date salEffDate) {
		this.salEffDate = salEffDate;
	}

	@JsonIgnore
	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

}